package com.yhy.common.security.annotation;

import com.yhy.common.security.config.SecurityAutoConfig;
import com.yhy.common.security.config.SecurityBeanDefinitionRegister;
import org.springframework.context.annotation.Import;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

import java.lang.annotation.*;

/**
 * @author Jax-li
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@EnableResourceServer
@EnableGlobalMethodSecurity(prePostEnabled = true)
@Import({SecurityAutoConfig.class, SecurityBeanDefinitionRegister.class})
public @interface EnableMyResourceServer {

}
